package com.hoas.databox.core;

public class EasyData {

    private String ticket;

    private String data;

    private String namespace;

    private String sender;

    private String recever;

    private Long  expireTime;

    public EasyData(String ticket, String data, String namespace, Long expireTime) {
        this.ticket = ticket;
        this.data = data;
        this.namespace = namespace == null || namespace.length() == 0 ? "default" : namespace;
        this.expireTime = expireTime;
    }

    public EasyData() {
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getRecever() {
        return recever;
    }

    public void setRecever(String recever) {
        this.recever = recever;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }
}
